const mongoose = require('mongoose')
const Schema = mongoose.Schema

const ScoreType = {
  username: Number, //学生学号
  courseid: Number, //课程编号
  daily: Number, //平时成绩
  exp: Number, //实验成绩
  mid: Number, //期中成绩
  final: Number, //期末成绩
  ispublish: Number, //0表示未发布，1表示已发布
  ispass: Number, //0表示未通过需要补考，1表示已通过
  reexam: Number //补考成绩
}

const ScoreModel = mongoose.model('score', new Schema(ScoreType))

module.exports = ScoreModel
